from configparser import ConfigParser
import os.path
class Analysis_ini():
    def get_path(self,keyname):
        # 获取当前项目根路径
        project_path = os.path.split(os.path.dirname(__file__))[0]
        conf1 = ConfigParser()
        # 拼接路径
        conf1.read(f'{project_path}/conf/conf.ini')
        return conf1['address'][keyname]


